Real-Time Trajectory Planning For Aerial Perching